﻿using Basic.HrRemoteModel.Emp;
using Basic.HrRemoteModel.Emp.Model;
using Basic.HrService.Interface;
using WeDonekRpc.Client.Interface;

namespace Basic.HrService.RpcEvent
{
    internal class EmpSearchEvent : IRpcApiService
    {
        private readonly IEmpSearchService _Service;

        public EmpSearchEvent ( IEmpSearchService service )
        {
            this._Service = service;
        }
        public WhileEmpResult GetWhileAuditEmp ( GetWhileAuditEmp obj )
        {
            return this._Service.Search(obj.FilterParam);
        }
        public SearchEmpResult SearchAuditEmp ( SearchAuditEmp obj )
        {
            return this._Service.SearchEmp(obj.Param, obj.Take, obj.Index);
        }
    }
}
